# 获取当前目录下的所有文件夹
$folders = Get-ChildItem -Path . -Directory -Recurse -Force

# 遍历每个文件夹并去除只读和隐藏属性
foreach ($folder in $folders) {
    attrib -s -r -h $folder.FullName
    Write-Host "Removed attributes from folder: $($folder.FullName)"
}

# 输出结果
Write-Host "Removed attributes from all folders in the current directory."
